require 'java'

require 'picounit/suite/suite.rb'
require 'picounit/suite/caller.rb'

class RubyPicoUnit
  include_class 'picounit.API'
  include API

  def generateTestSuite(caller = nil)
    RubyTestSuite.new(create_caller(caller))
  end

  private
  def create_caller(caller)
    caller.nil? ? Caller.inspect_stack(1) : Caller.direct_caller(caller)
  end
end
